package com.dao;


import com.pojo.Dep;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;


public interface DepDAO extends JpaRepository<Dep,Integer> {

     @Query(value = "from Dep")
     public List<Dep> getAll();

}
